<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<script type='text/javascript' src='${pageContext.request.contextPath}/js/public.js'></script>
    <style type="text/css">
	BODY,TD {FONT-FAMILY: "宋体"; FONT-SIZE: 10pt;line-height: 15px} 
	</style>
    <title>show Cardmaintype</title>
  </head>
  <body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
    <br>
		<fieldset><legend>主卡类型信息</legend>
		<table width="100%" border=1 align="center" cellpadding="0" cellspacing="0" bgcolor="#ccddee" ><tr>
			<td>类型名：${cardmaintype.cardmaintypename}</td>
		</tr></table>
		</fieldset>
		<table width="100%" border="0">
		<tr>
			<td width="50">
				<input type="submit" value="添加子类型" onclick="javascript:location.href='goAddCardsubtype.action?cardmaintypeno=${cardmaintype.cardmaintypeno}'">
			</td>
			<td width="50">
				<input type="submit" value="返回" onclick="javascript:location.href='findAllCardmaintype.action?cardmaintypeno=${cardmaintype.cardmaintypeno}'">
			</td>
			<td >
			</td>
		</tr>
		</table>
		<fieldset><legend>子类型列表</legend>
				<table width="100%" border=1 align="center" cellpadding="0" cellspacing="0" bgcolor="#ccddee" >
				<tr>
			        <td align="center">删除</td>
			        <td align="center">类型名称</td>
			        <td align="center">操作</td>
      			</tr>
      			<s:iterator value="pm.datas" status="rowstatus">
      				<tr <s:if test="#rowstatus.odd == true">bgcolor="white"</s:if>>
	      				<td align="center">
	      					<input type="checkbox" name="cardsubtypeno" value="<s:property value="cardsubtypeno"/>"
	      							 onclick="javascript:location.href='deleteCardsubtype.action?cardsubtypeno=<s:property value="cardsubtypeno"/>&cardmaintypeno=${cardmaintype.cardmaintypeno}'"/>
	      				</td>
	      				<td align="center"><s:property value="cardsubtypename"/></td>
			        	<td align="center">
			        		<a href="goUpdateCardsubtype.action?cardsubtypeno=<s:property value="cardsubtypeno"/>" >编辑</a>
			        	</td>
			        </tr>
				</s:iterator>
				<tr>
					<td colspan="8" align="center">
				<pg:pager url="${url}" items="${pm.total }" export="offset,currentPageNumber=pageNumber">
					<pg:param name="cardmaintypeno" value="${cardmaintypeno}"/>
					<pg:first>
						<a href="${pageUrl }">首页</a>
					</pg:first>
					<pg:prev>
						<a href="${pageUrl }">前页</a>
					</pg:prev>
					<pg:pages>
						<c:choose>
							<c:when test="${currentPageNumber eq pageNumber}">
								<font color="red">${pageNumber }</font>
							</c:when>
							<c:otherwise>
								<a href="${pageUrl }">${pageNumber }</a>
							</c:otherwise>
						</c:choose>
					</pg:pages>
					<pg:next>
						<a href="${pageUrl }">后页</a>
					</pg:next>
					<pg:last>
						<a href="${pageUrl }">尾页</a>
					</pg:last>
				</pg:pager>
					</td>
				</tr>
      		</table>
		</fieldset>
		<br>
</body>
</html>
